package com.chinaunicom.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chinaunicom.system.dto.UserDto;
import com.chinaunicom.system.model.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer nUserid) throws Exception;

    int insert(User record) throws Exception;

    int insertSelective(User record) throws Exception;

    User selectByPrimaryKey(Integer nUserid) throws Exception;

    int updateByPrimaryKeySelective(User record) throws Exception;

    int updateByPrimaryKey(User record) throws Exception;

	User querybyUserName(@Param("username")String username)throws Exception;

	List<UserDto> query(UserDto dto) throws Exception;

	void saveUserAndRole(@Param("n_userid")Integer userid, @Param("n_roleid")Integer rid) throws Exception;

	UserDto queryById(Integer id) throws Exception;

	void deleteRoleByUserId(Integer getnUserid) throws Exception;
}